import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router';

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        component: () => import('../components/HelloWorld.vue'),
    },
    {
        path: '/Add',
        component: () => import('../View/Add.vue'),
    },
    {
        path: '/Show',
        component: () => import('../View/Show.vue'),
    },
    {
        path: '/Gittee',
        component: () => import('../View/Gittee.vue'),
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router